export interface ResponseData{
    code:number
    message:string
    ok:boolean
}
//sku Ts类型
export interface Attr {//平台属性
    attrId: number | string, //平台属性Id
    valueId: number | string,//平台属性值
    id?:number,
    valueName?:string,
}

export interface saleAttr{ //销售属性
    saleAttrId: number | string, //销售属性Id
    saleAttrValueId: number | string, //销售属性值
    id?:number,
    saleAttrValueName?:string,
}
export interface SkuData {
    category3Id?: string | number,
    spuId?: string | number,
    tmId?: string | number, //品牌ID
    skuName?: string,
    price?: string | number,
    weight?: string | number, //重量
    skuDesc?: string,  //sku描述
    skuAttrValueList?:  Attr[]//平台属性
    skuSaleAttrValueList?: saleAttr[]
    skuDefaultImg?: string  // sku图片地址
    isSale?:number //是否上架
    id?:number
}
//获取SKU接口返回数据TS类型
export interface SkuResponseData extends ResponseData{
    data:{
        records:SkuData[]
        total:number
        size:number
        current:number
        orders:[]
        optimizeCountSql:boolean
        hitCount:boolean
        countId:null
        maxLimit:null
        searchCount:boolean
        pages:number
    }
}

//获取SKU商品详情接口TS类型
export interface SkuInfoData extends ResponseData{
    data: SkuData
}



